<!--
	

	This updates the table of costs
-->
<?php
	$status = $_POST['status'];
	$key = $_GET['sample_key'];	
	
	$con= mysql_connect('localhost','editanalysis','editanalysis') or die('Could not connect: ' . mysql_error());
	mysql_select_db('casl') or die(mysql_error());	

	$query = "UPDATE sample_entry SET status = '$status' WHERE sample_key = '$key'";
	$update = mysql_query($query);

	if($update == TRUE){
		header("Location: AdministratorHomepage.php");
	}else{
		header("Location: ViewSummary.php?sample_key=".$key);
	}

	mysql_close($con);	
?>